 
<div class="mws-panel grid_8 mws-collapsible  teachers">
  <div class="mws-panel-header">
     <span class="mws-i-24 i-table-1"><?php  echo __('Teacher'); ?></span>
   <div class="mws-collapse-button mws-inset"><span></span></div>
 </div>
<div class="mws-panel-body" style="display: block; direction:rtl;">
  <div class="right_direction"> 
  <table class="mws-table">
      <tbody>
		<tr><td class="left_header"><?php echo __('Id'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['id']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Fullname'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['fullname']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Nation'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['nation']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Gender'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['gender']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Birth'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['birth']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Birth Place'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['birth_place']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Country'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['country']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('City'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['city']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Address'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['address']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Home Phone'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['home_phone']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Phone No'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['phone_no']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Email'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['email']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Passport No'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['passport_no']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Marital'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['marital']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Military Service'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['military_service']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Last Graduated'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['last_graduated']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Place Graduated'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['place_graduated']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Branch'); ?></td>
		<td>
			<?php echo $this->Html->link($teacher['Branch']['name'], array('controller' => 'branches', 'action' => 'view', $teacher['Branch']['id'])); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('On Date'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['on_date']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Info'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['info']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Status'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['status']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Lastlogin'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['lastlogin']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('User'); ?></td>
		<td>
			<?php echo $this->Html->link($teacher['User']['id'], array('controller' => 'users', 'action' => 'view', $teacher['User']['id'])); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Created'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['created']); ?>
			&nbsp;
		</td></tr>
		<tr><td class="left_header"><?php echo __('Modified'); ?></td>
		<td>
			<?php echo h($teacher['Teacher']['modified']); ?>
			&nbsp;
		</td></tr>
	</tbody>
	</table>
</div>
</div>

<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Teacher'), array('action' => 'edit', $teacher['Teacher']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Teacher'), array('action' => 'delete', $teacher['Teacher']['id']), null, __('Are you sure you want to delete # %s?', $teacher['Teacher']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Teachers'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Teacher'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Branches'), array('controller' => 'branches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Branch'), array('controller' => 'branches', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Teachersubjects'), array('controller' => 'teachersubjects', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Teachersubject'), array('controller' => 'teachersubjects', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Teachersubjects'); ?></h3>
	<?php if (!empty($teacher['Teachersubject'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Subject Id'); ?></th>
		<th><?php echo __('Teacher Id'); ?></th>
		<th><?php echo __('Uniyear Id'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($teacher['Teachersubject'] as $teachersubject): ?>
		<tr>
			<td><?php echo $teachersubject['id']; ?></td>
			<td><?php echo $teachersubject['subject_id']; ?></td>
			<td><?php echo $teachersubject['teacher_id']; ?></td>
			<td><?php echo $teachersubject['uniyear_id']; ?></td>
			<td><?php echo $teachersubject['user_id']; ?></td>
			<td><?php echo $teachersubject['created']; ?></td>
			<td><?php echo $teachersubject['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'teachersubjects', 'action' => 'view', $teachersubject['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'teachersubjects', 'action' => 'edit', $teachersubject['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'teachersubjects', 'action' => 'delete', $teachersubject['id']), null, __('Are you sure you want to delete # %s?', $teachersubject['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Teachersubject'), array('controller' => 'teachersubjects', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
